local totalLines = achievements.GetValue( "Shut Up!", "total", 0 )
local function ChatText( ply, name, text )
	if ( ply != LocalPlayer():EntIndex() ) then return end
	if ( totalLines == 3000 ) then return end
	totalLines = math.Clamp( totalLines + 1, 0, 3000 )
	achievements.Update( "Shut Up!", totalLines / 3000, totalLines .. "/3000" )
	achievements.SetValue( "Shut Up!", "total", totalLines )
end
hook.Add( "ChatText", "Achievements.ShutUp!", ChatText )

achievements.Register( "Shut Up!", "Say 3000 lines in chat.", "achievements/shutup", totalLines / 3000, totalLines .. "/3000" )